package com.wb.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j //lombok提供的注解，该注解可以输出日志。lombok除此之外还能提供get。set方法等
@SpringBootApplication
@ServletComponentScan
@EnableTransactionManagement    //开启事务注解支持
public class AppReggie {
    public static void main(String[] args) {
        SpringApplication.run(AppReggie.class,args);
        log.info("瑞吉外卖启动~");
    }
}
